﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Data;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.Runtime.InteropServices;


namespace Alvin.Active
{
    [Guid("CA868335-3337-48E2-95FC-35E69BEFF69E"), ProgId("Alvin.Active.PrintHelper"),ComVisible(true)]
    public partial class PrintHelper : UserControl,IObjectSafety
    {
        public PrintHelper()
        {
            InitializeComponent();
        }

        public void ShowMessage(string msg)
        {
            if (msg != null)
            {
                MessageBox.Show(msg, "提示");
            }
        }

        #region IObjectSafety 成员

        public void GetInterfacceSafyOptions(Int32 riid, out Int32 pdwSupportedOptions, out Int32 pdwEnabledOptions)
        {
            // TOD  添加 WebCamControl.GetInterfacceSafyOptions 实现
            pdwSupportedOptions = CLsObjectSafety.InterfacesafeForUntrustedCaller;
            pdwEnabledOptions = CLsObjectSafety.InterfacesafeForUntrustedData;
        }

        public void SetInterfaceSafetyOptions(Int32 riid, Int32 dwOptionsSetMask, Int32 dwEnabledOptions)
        {
            // TOD  添加 WebCamControl.SetInterfaceSafetyOptions 实现
        }

        #endregion
    }
}
